﻿using GrainManage.Entities.Column;
using GrainManage.Server.Business;
using System.Web.Mvc;

namespace GrainManage.Server.Controllers
{
    public class ColumnController : BaseController
    {
        private readonly ColumnBusiness business = new ColumnBusiness();

        //************************************************POST************************************************
        [HttpPost]
        public ActionResult GetHeader(InputGetHeader input)
        {
            var result = business.GetHeader(input);
            return NewtonsoftJson(result);
        }

        [HttpPost]
        public ActionResult GetColumnHeader(InputGetColumnHeader input)
        {
            var result = business.GetColumnHeader(input);
            return NewtonsoftJson(result);
        }
    }
}
